package com.hxy.health.platform.service.impl;

import com.hxy.health.platform.dao.EmployeeMapper;
import com.hxy.health.platform.pojo.Employee;
import com.hxy.health.platform.service.EmployeeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class EmployeeServiceImpl implements EmployeeService {
    @Autowired
    private EmployeeMapper employeeMapper;

    /**
     * 查询所有员工
     * @return
     */
    @Override
    public List<Employee> getAll() {
        List<Employee> employees = employeeMapper.getAll();
        return employees;
    }
}
